#pragma once
#include "filter.h"
#include <list>

class Refine :
	public Filter
{
public:
	Refine(int maxSize = 0);
	virtual ~Refine(void);

	void Process();
	void start(const cv::Point2i &startPt, std::list<cv::Point2i> &result, std::list<cv::Point2i> &points, cv::Mat &mask);

	double f(double x);


private:
	int maxSize;
};

